﻿/*
 * Created by SharpDevelop.
 * User: xieen
 * Date: 2013-08-26
 * Time: 14:58
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace GoF23Learning._20.State_Pattern.Refactor
{
	/// <summary>
	/// Description of Document.
	/// </summary>
	public class Document
	{
		StateDocuemnt docState;
		public void DocuemntState(StateDocuemnt state)
		{
			this.docState = state;
		}
		
		public void Handle1(){
			docState.Hander1();
			
		}
		public void Handle2(){
			docState.Hander2();			
		}
		public void Handle3(){
			docState.Hander3();
		}
	}
}
